package org.leo.dm.util.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DmException extends Exception {
	private static final long serialVersionUID = -5052396682525032137L;
	private static Logger log;
	static{
		log = LoggerFactory.getLogger("平台系统日志：");
	}
	
	public DmException() {
		super();
	}
	
	public DmException(String msg,Exception e){
		super(msg,e);
		log.error(msg,e);
	}
	
	public DmException(String msg){
		super(msg);
		log.error(msg);
	}
	
	public DmException(Exception e){
		super(e);
		log.error("",e);
	}
}
